import { ref, toRefs, computed } from 'vue'
// 引入pinia的事件信息
import { useDialogEvents } from '@/stores/dialogEvents.js'
import { storeToRefs } from 'pinia'
const { allEvents } = toRefs(useDialogEvents())
export const useDealwithChartData = () => {
  // 筛选所有事件信息的'发生时间'
  let eventData = allEvents.value.map((item) => {
    const year = item.values_.values_.发生时间.slice(0, 3)
    return year
  })

  return finalData
}
